home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / UTIL / Msh 1.0.0.sit / Msh 1.0.0 f / Manual / MAN2A.HLP < prev    next >
Text File  |  1996-11-14  |  24KB  |  1,255 lines

  1. /***Intro***/
  2. Intro(2a)
  3.  
  4. 【名前】
  5.     Intro - Toolbox: サウンド(音)関連(man2a.hlp)
  6.  
  7. 【概要】
  8.  
  9. 【関連項目】
  10.  
  11. 【Inside Macintosh】
  12.                                 <<キーワード>>
  13.     Sound Manager                        SoundManager
  14.         VI-22(Part 2)    Sound Manager
  15.  
  16.     廃止
  17.         V-473        Sound Manager
  18.         
  19.  
  20. 【ヘッダー】
  21.     Sound.h
  22.     SoundInput.h
  23.     MIDI.h
  24.  
  25.     AIFF.h
  26.     ADSP.h
  27.  
  28. 【残り】
  29.     全て
  30. /***SndDoCommand***/ SndDoImmediate SoundManager
  31. SndDoCommand(2a)
  32.  
  33. 【名前】
  34.     SndDoCommand   -
  35.     SndDoImmediate -
  36.  
  37. 【書式】
  38.     ■SndDoCommand        V-479
  39.     ■SndDoImmediate    V-479
  40.  
  41.     OSErr    SndDoCommand(SndChannelPtr chan, const SndCommand *cmd,
  42.                             Boolean noWait);
  43.  
  44.     OSErr    SndDoImmediate(SndChannelPtr chan, const SndCommand *cmd);
  45. /***SndNewChannel***/ SndDisposeChannel SoundManager
  46. SndNewChannel(2a)
  47.  
  48. 【名前】
  49.     SndNewChannel     -
  50.     SndDisposeChannel -
  51.  
  52. 【書式】
  53.     ■SndNewChannel        V-477
  54.     ■SndDisposeChannel    V-479
  55.  
  56.     OSErr    SndNewChannel(SndChannelPtr *chan, short synth, long init,
  57.             SndCallBackProcPtr userRoutine);
  58.  
  59.     OSErr    SndDisposeChannel(SndChannelPtr chan, Boolean quietNow);
  60. /***SndPlay***/ SoundManager
  61. SndPlay(2a)
  62.  
  63. 【名前】
  64.     SndPlay -
  65.  
  66. 【書式】
  67.     ■SndPlay    V-477
  68.  
  69.     OSErr    SndPlay(SndChannelPtr chan, Handle sndHdl, Boolean async);
  70. /***SndAddModifier***/ SoundManager
  71. SndAddModifier(2a)
  72.  
  73. 【名前】
  74.     SndAddModifier -
  75.  
  76. 【書式】
  77.     ■SndAddModifier    V-478
  78.  
  79.     OSErr    SndAddModifier(SndChannelPtr chan, ProcPtr modifier, short id,
  80.             long init);
  81. /***SndControl***/ SoundManager
  82. SndControl(2a)
  83.  
  84. 【名前】
  85.     SndControl -
  86.  
  87. 【書式】
  88.     ■SndControl    V-479
  89.  
  90.     OSErr    SndControl(short id, SndCommand *cmd);
  91. /***SetSoundVol***/ GetSoundVol SoundManager
  92. SetSoundVol(2a)
  93.  
  94. 【名前】
  95.     SetSoundVol -
  96.     GetSoundVol -
  97.  
  98. 【書式】
  99.     ■SetSoundVol    II-233
  100.     ■GetSoundVol    II-232
  101.  
  102.     void    SetSoundVol(short level);
  103.     void    GetSoundVol(short *level);
  104. /***StartSound***/ StopSound SoundDone SoundManager
  105. StartSound(2a)
  106.  
  107. 【名前】
  108.     StartSound -
  109.     StopSound  -
  110.     SoundDone  -
  111.  
  112. 【書式】
  113.     ■StartSound    II-231
  114.     ■StopSound    II-232
  115.     ■SoundDone    II-232
  116.  
  117.     void    StartSound(const void *synthRec, long numBytes,
  118.             SndCompletionProcPtr completionRtn);
  119.  
  120.     void    StopSound(void);
  121.  
  122.     Boolean    SoundDone(void);
  123. /***SndSoundManagerVersion***/ MACEVersion SPBVersion SoundManager
  124. SndSoundManagerVersion(2a)
  125.  
  126. 【名前】
  127.     SndSoundManagerVersion -
  128.     MACEVersion            -
  129.     SPBVersion             -
  130.  
  131. 【書式】
  132.     NumVersion    SndSoundManagerVersion(void);
  133.  
  134.     NumVersion    MACEVersion(void);
  135.  
  136.     NumVersion    SPBVersion(void);
  137. /***SndStartFilePlay***/ SndPauseFilePlay SndStopFilePlay AudioSelection AudioSelectionPtr SoundManager
  138. SndStartFilePlay(2a)
  139.  
  140. 【名前】
  141.     SndStartFilePlay -
  142.     SndPauseFilePlay -
  143.     SndStopFilePlay  -
  144.     AudioSelection   - data type
  145.  
  146. 【書式】
  147.     OSErr    SndStartFilePlay(SndChannelPtr chan, short fRefNum,
  148.             short resNum, long bufferSize, void *theBuffer,
  149.             AudioSelectionPtr theSelection, ProcPtr theCompletion,
  150.             Boolean async);
  151.  
  152.     OSErr    SndPauseFilePlay(SndChannelPtr chan);
  153.     OSErr    SndStopFilePlay(SndChannelPtr chan, Boolean async);
  154.  
  155.     ■AudioSelection    ??
  156.       AudioSelection
  157.         long    unitType;
  158.         Fixed    selStart;
  159.         Fixed    selEnd;
  160.       AudioSelectionPtr    AudioSelection *
  161. /***SndChannelStatus***/ SndManagerStatus SndGetSysBeepState SndSetSysBeepState SCStatus SCStatusPtr SMStatus SMStatusPtr SoundManager
  162. SndChannelStatus(2a)
  163.  
  164. 【名前】
  165.     SndChannelStatus   -
  166.     SndManagerStatus   -
  167.     SndGetSysBeepState -
  168.     SndSetSysBeepState -
  169.     SCStatus           - data type
  170.     SMStatus           - data type
  171.  
  172. 【書式】
  173.     OSErr    SndChannelStatus(SndChannelPtr chan, short theLength,
  174.             SCStatusPtr theStatus);
  175.  
  176.     OSErr    SndManagerStatus(short theLength, SMStatusPtr theStatus);
  177.  
  178.     void    SndGetSysBeepState(short *sysBeepState);
  179.  
  180.     OSErr    SndSetSysBeepState(short sysBeepState);
  181.  
  182.     ■SCStatus    ??
  183.       SCStatus
  184.         Fixed    scStartTime;
  185.         Fixed    scEndTime;
  186.         Fixed    scCurrentTime;
  187.         Boolean scChannelBusy;
  188.         Boolean scChannelDisposed;
  189.         Boolean scChannelPaused;
  190.         Boolean scUnused;
  191.         unsigned long scChannelAttributes;
  192.         long    scCPULoad;
  193.       SCStatusPtr    SCStatus *
  194.  
  195.     ■SMStatus    ??
  196.       SMStatus
  197.         short    smMaxCPULoad;
  198.         short    smNumChannels;
  199.         short    smCurCPULoad;
  200.       SMStatusPtr    SMStatus *
  201. /***SndPlayDoubleBuffer***/ SndDoubleBuffer SndDoubleBufferPtr SndDoubleBufferHeader SndDoubleBufferHeaderPtr SoundManager
  202. SndPlayDoubleBuffer(2a)
  203.  
  204. 【名前】
  205.     SndPlayDoubleBuffer   -
  206.     SndDoubleBuffer       - data type
  207.     SndDoubleBufferHeader - data type
  208.  
  209. 【書式】
  210.     OSErr    SndPlayDoubleBuffer(SndChannelPtr chan,
  211.             SndDoubleBufferHeaderPtr theParams);
  212.  
  213.  
  214.     ■SndDoubleBuffer    ??
  215.       SndDoubleBuffer
  216.         long    dbNumFrames;
  217.         long    dbFlags;
  218.         long    dbUserInfo[2];
  219.         char    dbSoundData[1];
  220.       SndDoubleBufferPtr    SndDoubleBuffer *
  221.  
  222.     ■SndDoubleBufferHeader    ??
  223.       SndDoubleBufferHeader
  224.         short        dbhNumChannels;
  225.         short        dbhSampleSize;
  226.         short        dbhCompressionID;
  227.         short        dbhPacketSize;
  228.         Fixed        dbhSampleRate;
  229.         SndDoubleBufferPtr   dbhBufferPtr[2];
  230.         SndDoubleBackProcPtr dbhDoubleBack;
  231.       SndDoubleBufferHeaderPtr    SndDoubleBufferHeader *
  232. /***Comp3to1***/ Exp1to3 Comp6to1 Exp1to6 SoundManager
  233. Comp3to1(2a)
  234.  
  235. 【名前】
  236.     Comp3to1 -
  237.     Exp1to3  -
  238.     Comp6to1 -
  239.     Exp1to6  -
  240.  
  241. 【書式】
  242.     void    Comp3to1(const void *inBuffer, void *outBuffer,
  243.             unsigned long cnt, const void *inState, void *outState,
  244.             unsigned long numChannels, unsigned long whichChannel);
  245.     void    Exp1to3(const void *inBuffer, void *outBuffer,
  246.             unsigned long cnt, const void *inState, void *outState,
  247.             unsigned long numChannels, unsigned long whichChannel);
  248.     void    Comp6to1(const void *inBuffer, void *outBuffer,
  249.             unsigned long cnt, const void *inState, void *outState,
  250.             unsigned long numChannels, unsigned long whichChannel);
  251.     void    Exp1to6(const void *inBuffer, void *outBuffer,
  252.             unsigned long cnt, const void *inState, void *outState,
  253.             unsigned long numChannels, unsigned long whichChannel);
  254. /***FFSynthRec***/ FFSynthPtr FreeWave SoundManager
  255. FFSynthRec(2a)
  256.  
  257. 【名前】
  258.     FFSynthRec -
  259.  
  260. 【書式】
  261.     ■FFSynthRec    II-228
  262.     ■FreeWave    II-228
  263.  
  264.       FFSynthRec
  265.         short    mode;
  266.         Fixed    count;
  267.         FreeWave waveBytes;
  268.       FFSynthPtr    FFSynthRec *
  269.  
  270.       FreeWave    unsigned char    [30001]
  271. /***Tone***/ Tones SoundManager
  272. Tone(2a)
  273.  
  274. 【名前】
  275.     Tone -
  276.  
  277. 【書式】
  278.     ■Tone    II-225
  279.       Tone
  280.         short    count;
  281.         short    amplitude;
  282.         short    duration;
  283.       Tones    Tone    [5001]
  284. /***SWSynthRec***/ SWSynthPtr SoundManager
  285. SWSynthRec(2a)
  286.  
  287. 【名前】
  288.     SWSynthRec -
  289.  
  290. 【書式】
  291.     ■SWSynthRec    II-225
  292.       SWSynthRec
  293.         short    mode;
  294.         Tones    triplets;
  295.  
  296.       SWSynthPtr    SWSynthRec *
  297. /***Wave***/ SoundManager
  298.     Wave    II-227
  299.     Wave    unsigned char    [256]
  300.     WavePtr    Wave *
  301. /***FTSoundRec***/ FTSndRecPtr SoundManager
  302. FTSoundRec(2a)
  303.  
  304. 【名前】
  305.     FTSoundRec -
  306.  
  307. 【書式】
  308.     ■FTSoundRec    II-227
  309.       FTSoundRec
  310.         short    duration;
  311.         Fixed    sound1Rate;
  312.         long    sound1Phase;
  313.         Fixed    sound2Rate;
  314.         long    sound2Phase;
  315.         Fixed    sound3Rate;
  316.         long    sound3Phase;
  317.         Fixed    sound4Rate;
  318.         long    sound4Phase;
  319.         WavePtr sound1Wave;
  320.         WavePtr sound2Wave;
  321.         WavePtr sound3Wave;
  322.         WavePtr sound4Wave;
  323.       FTSndRecPtr    FTSoundRec *
  324. /***FTSynthRec***/ FTSynthPtr SoundManager
  325. FTSynthRec(2a)
  326.  
  327. 【名前】
  328.     FTSynthRec -
  329.  
  330. 【書式】
  331.     ■FTSynthRec    II-227
  332.       FTSynthRec
  333.         short        mode;
  334.         FTSndRecPtr    sndRec;
  335.       FTSynthPtr    FTSynthRec *
  336. /***SndCommand***/ SoundManager
  337. SndCommand(2a)
  338.  
  339. 【名前】
  340.     SndCommand -
  341.  
  342. 【書式】
  343.     ■SndCommand    V-483
  344.       SndCommand
  345.         unsigned short    cmd;
  346.         short        param1;
  347.         long        param2;
  348. /***SndChannel***/ SndChannelPtr SoundManager
  349. SndChannel(2a)
  350.  
  351. 【名前】
  352.     SndChannel -
  353.  
  354. 【書式】
  355.     ■SndChannel    V-477, 481
  356.       SndChannel
  357.         struct    SndChannel *nextChan;
  358.         Ptr    firstMod;
  359.         SndCallBackProcPtr callBack;
  360.         long    userInfo;
  361.         long    wait;
  362.         SndCommand cmdInProgress;
  363.         short    flags;
  364.         short    qLength;
  365.         short    qHead;
  366.         short    qTail;
  367.         SndCommand queue[stdQLength];
  368.       SndChannelPtr    SndChannel *
  369. /***SndListResource***/ SndListPtr ModRef SoundManager
  370. SndListResource(2a)
  371.  
  372. 【名前】
  373.     SndListResource -
  374.     ModRef          -
  375.  
  376. 【書式】
  377.     ■SndListResource    ??
  378.       SndListResource
  379.         short        format;
  380.         short        numModifiers;
  381.         ModRef        modifierPart[1];
  382.         short        numCommands;
  383.         SndCommand    commandPart[1];
  384.         char        dataPart[1];
  385.       SndListPtr    SndListResource *
  386.  
  387.     ■ModRef    ??
  388.       ModRef
  389.         unsigned short    modNumber;
  390.         long        modInit;
  391. /***SoundHeader***/ SoundHeaderPtr CmpSoundHeader CmpSoundHeaderPtr ExtSoundHeader ExtSoundHeaderPtr StateBlock StateBlockPtr LeftOverBlock LeftOverBlockPtr SoundManager
  392. SoundHeader(2a)
  393.  
  394. 【名前】
  395.     SoundHeader    -
  396.     CmpSoundHeader -
  397.     ExtSoundHeader -
  398.     StateBlock     -
  399.     LeftOverBlock  -
  400.  
  401. 【書式】
  402.     ■SoundHeader    ??
  403.       SoundHeader
  404.         Ptr        samplePtr;
  405.         unsigned long    length;
  406.         Fixed        sampleRate;
  407.         unsigned long    loopStart;
  408.         unsigned long    loopEnd;
  409.         unsigned char    encode;
  410.         unsigned char    baseFrequency;
  411.         char        sampleArea[1];
  412.       SoundHeaderPtr    SoundHeader *
  413.  
  414.     ■CmpSoundHeader    ??
  415.       CmpSoundHeader
  416.         Ptr        samplePtr;
  417.         unsigned long    numChannels;
  418.         Fixed        sampleRate;
  419.         unsigned long    loopStart;
  420.         unsigned long    loopEnd;
  421.         unsigned char    encode;
  422.         unsigned char    baseFrequency;
  423.         unsigned long    numFrames;
  424.         extended    AIFFSampleRate;
  425.         Ptr        markerChunk;
  426.         Ptr        futureUse1;
  427.         Ptr        futureUse2;
  428.         StateBlockPtr    stateVars;
  429.         LeftOverBlockPtr leftOverSamples;
  430.         unsigned short    compressionID;
  431.         unsigned short    packetSize;
  432.         unsigned short    snthID;
  433.         unsigned short    sampleSize;
  434.         char        sampleArea[1];
  435.       CmpSoundHeaderPtr    CmpSoundHeader *
  436.  
  437.     ■ExtSoundHeader    ??
  438.       ExtSoundHeader
  439.         Ptr        samplePtr;
  440.         unsigned long    numChannels;
  441.         Fixed        sampleRate;
  442.         unsigned long    loopStart;
  443.         unsigned long    loopEnd;
  444.         unsigned char    encode;
  445.         unsigned char    baseFrequency;
  446.         unsigned long    numFrames;
  447.         extended    AIFFSampleRate;
  448.         Ptr        markerChunk;
  449.         Ptr        instrumentChunks;
  450.         Ptr        AESRecording;
  451.         unsigned short    sampleSize;
  452.         unsigned short    futureUse1;
  453.         unsigned long    futureUse2;
  454.         unsigned long    futureUse3;
  455.         unsigned long    futureUse4;
  456.         char        sampleArea[1];
  457.       ExtSoundHeaderPtr    ExtSoundHeader *
  458.  
  459.     ■StateBlock    ??
  460.       StateBlock
  461.         short    stateVar[stateBlockSize];
  462.       StateBlockPtr    StateBlock *
  463.  
  464.     ■LeftOverBlock    ??
  465.       LeftOverBlock
  466.         unsigned long    count;
  467.         char        sampleArea[leftOverBlockSize];
  468.       LeftOverBlockPtr    LeftOverBlock *
  469. /***ConversionBlock***/ ConversionBlockPtr SoundManager
  470. ConversionBlock(2a)
  471.  
  472. 【名前】
  473.     ConversionBlock -
  474.  
  475. 【書式】
  476.     ■ConversionBlock    ??
  477.       ConversionBlock
  478.         short    destination;
  479.         short    unused;
  480.         CmpSoundHeaderPtr inputPtr;
  481.         CmpSoundHeaderPtr outputPtr;
  482.       ConversionBlockPtr    ConversionBlock *
  483. #
  484. #
  485. #
  486. /***SndRecord***/ SndRecordToFile
  487. SndRecord(2a)
  488.  
  489. 【名前】
  490.     SndRecord       -
  491.     SndRecordToFile -
  492.  
  493. 【書式】
  494.     OSErr    SndRecord(ModalFilterProcPtr filterProc, Point corner,
  495.             OSType quality, Handle *sndHandle);
  496.  
  497.     OSErr    SndRecordToFile(ModalFilterProcPtr filterProc, Point corner,
  498.             OSType quality, short fRefNum);
  499. /***SPBSignInDevice***/ SPBSignOutDevice SPBGetIndexedDevice SPBOpenDevice SPBCloseDevice
  500. SPBSignInDevice(2a)
  501.  
  502. 【名前】
  503.     SPBSignInDevice     -
  504.     SPBSignOutDevice    -
  505.     SPBGetIndexedDevice -
  506.     SPBOpenDevice       -
  507.     SPBCloseDevice      -
  508.  
  509. 【書式】
  510.     OSErr    SPBSignInDevice(short deviceRefNum, Str255 deviceName);
  511.  
  512.     OSErr    SPBSignOutDevice(short deviceRefNum);
  513.  
  514.     OSErr    SPBGetIndexedDevice(short count, Str255 deviceName,
  515.             Handle *deviceIconHandle);
  516.  
  517.     OSErr    SPBOpenDevice(ConstStr255Param deviceName, short permission,
  518.             long *inRefNum);
  519.  
  520.     OSErr    SPBCloseDevice(long inRefNum);
  521. /***SPBRecord***/ SPBRecordToFile SPBPauseRecording SPBResumeRecording SPBStopRecording SPBGetRecordingStatus SPB SPBPtr
  522. SPBRecord(2a)
  523.  
  524. 【名前】
  525.     SPBRecord             -
  526.     SPBRecordToFile       -
  527.     SPBPauseRecording     -
  528.     SPBResumeRecording    -
  529.     SPBStopRecording      -
  530.     SPBGetRecordingStatus -
  531.     SPB                   - data type
  532.  
  533. 【書式】
  534.     OSErr    SPBRecord(SPBPtr inParamPtr, Boolean asynchFlag);
  535.  
  536.     OSErr    SPBRecordToFile(short fileRefNum, SPBPtr inParamPtr,
  537.             Boolean asynchFlag);
  538.  
  539.     OSErr    SPBPauseRecording(long inRefNum);
  540.  
  541.     OSErr    SPBResumeRecording(long inRefNum);
  542.  
  543.     OSErr    SPBStopRecording(long inRefNum);
  544.  
  545.     OSErr    SPBGetRecordingStatus(long inRefNum, short *recordingStatus,
  546.             short *meterLevel, ulong *totalSamplesToRecord,
  547.             ulong *numberOfSamplesRecorded,
  548.             ulong *totalMsecsToRecord,
  549.             ulong *numberOfMsecsRecorded );
  550.  
  551.     ■SPB    ??
  552.       SPB
  553.         long    inRefNum;
  554.         ulong    count;
  555.         ulong    milliseconds;
  556.         ulong    bufferLength;
  557.         Ptr    bufferPtr;
  558.         ProcPtr    completionRoutine;
  559.         ProcPtr    interruptRoutine;
  560.         long    userLong;
  561.         OSErr    error;
  562.         long    unused1;
  563. /***SPBGetDeviceInfo***/ SPBSetDeviceInfo
  564. SPBGetDeviceInfo(2a)
  565.  
  566. 【名前】
  567.     SPBGetDeviceInfo -
  568.     SPBSetDeviceInfo -
  569.  
  570. 【書式】
  571.     OSErr    SPBGetDeviceInfo(long inRefNum, OSType infoType,
  572.             char *infoData);
  573.  
  574.     OSErr    SPBSetDeviceInfo(long inRefNum, OSType infoType,
  575.             char *infoData);
  576. /***SPBMillisecondsToBytes***/ SPBBytesToMilliseconds
  577. SPBMillisecondsToBytes(2a)
  578.  
  579. 【名前】
  580.     SPBMillisecondsToBytes -
  581.     SPBBytesToMilliseconds -
  582.  
  583. 【書式】
  584.     OSErr    SPBMillisecondsToBytes(long inRefNum, long *milliseconds);
  585.  
  586.     OSErr    SPBBytesToMilliseconds(long inRefNum, long *byteCount);
  587. /***SetupSndHeader***/ SetupAIFFHeader
  588. SetupSndHeader(2a)
  589.  
  590. 【名前】
  591.     SetupSndHeader -
  592.     SetupAIFFHeader -
  593.  
  594. 【書式】
  595.     OSErr    SetupSndHeader(Handle sndH, short numChannels,
  596.             Fixed sampleRate, short sampleSize,
  597.             OSType compressionType, short baseNote, ulong numBytes,
  598.             short *headerLen);
  599.  
  600.     OSErr    SetupAIFFHeader(short fRefNum, short numChannels,
  601.             Fixed sampleRate, short sampleSize,
  602.             OSType compressionType, ulong numBytes,
  603.             ulong numFrames);
  604. #
  605. #
  606. #
  607. /***SndDispVersion***/
  608. SndDispVersion(2a)
  609.  
  610. 【名前】
  611.     SndDispVersion -
  612.  
  613.     long    SndDispVersion(short toolnum);
  614. /***MIDISignIn***/ MIDISignOut
  615. MIDISignIn(2a)
  616.  
  617. 【名前】
  618.     MIDISignIn  -
  619.     MIDISignOut -
  620.  
  621.     OSErr    MIDISignIn(OSType clientID, long refCon, Handle icon,
  622.             ConstStr255Param name);
  623.  
  624.     void    MIDISignOut(OSType clientID);
  625. /***MIDIGetClients***/ MIDIGetClientName MIDISetClientName
  626. MIDIGetClients(2a)
  627.  
  628. 【名前】
  629.     MIDIGetClients    -
  630.     MIDIGetClientName -
  631.     MIDISetClientName -
  632.  
  633.     MIDIIDListHdl    MIDIGetClients(void);
  634.  
  635.     void    MIDIGetClientName(OSType clientID, Str255 name);
  636.  
  637.     void    MIDISetClientName(OSType clientID, ConstStr255Param name);
  638. /***MIDIGetPorts***/ MIDIAddPort MIDIGetPortInfo MIDIGetPortName MIDISetPortName
  639. MIDIGetPorts(2a)
  640.  
  641. 【名前】
  642.     MIDIGetPorts    -
  643.     MIDIAddPort     -
  644.     MIDIGetPortInfo -
  645.     MIDIGetPortName -
  646.     MIDISetPortName -
  647.  
  648.     MIDIIDListHdl    MIDIGetPorts(OSType clientID);
  649.  
  650.     OSErr    MIDIAddPort(OSType clientID, short BufSize, short *refnum,
  651.             MIDIPortParamsPtr init);
  652.  
  653.     MIDIPortInfoHdl    MIDIGetPortInfo(OSType clientID, OSType portID);
  654.  
  655.     void    MIDIGetPortName(OSType clientID, OSType portID, Str255 name);
  656.     void    MIDISetPortName(OSType clientID, OSType portID,
  657.                             ConstStr255Param name);
  658. /***MIDIConnectData***/ MIDIUnConnectData MIDIConnectTime MIDIUnConnectTime
  659. MIDIConnectData(2a)
  660.  
  661. 【名前】
  662.     MIDIConnectData   -
  663.     MIDIUnConnectData -
  664.     MIDIConnectTime   -
  665.     MIDIUnConnectTime -
  666.  
  667.     OSErr    MIDIConnectData(OSType srcClID, OSType srcPortID,
  668.             OSType dstClID, OSType dstPortID);
  669.  
  670.     OSErr    MIDIUnConnectData(OSType srcClID, OSType srcPortID,
  671.             OSType dstClID, OSType dstPortID);
  672.  
  673.     OSErr    MIDIConnectTime(OSType srcClID, OSType srcPortID,
  674.             OSType dstClID, OSType dstPortID);
  675.  
  676.     OSErr    MIDIUnConnectTime(OSType srcClID, OSType srcPortID,
  677.             OSType dstClID, OSType dstPortID);
  678. /***MIDIFlush***/
  679. MIDIFlush(2a)
  680.  
  681. 【名前】
  682.     MIDIFlush -
  683.  
  684.     void    MIDIFlush(short refnum);
  685. /***MIDIGetReadHook***/ MIDISetReadHook
  686. MIDIGetReadHook(2a)
  687.  
  688. 【名前】
  689.     MIDIGetReadHook -
  690.     MIDISetReadHook -
  691.  
  692.     ProcPtr    MIDIGetReadHook(short refnum);
  693.  
  694.     void    MIDISetReadHook(short refnum, ProcPtr hook);
  695. /***MIDIWakeUp***/ MIDIRemovePort MIDIGetSync MIDISetSync
  696. MIDIWakeUp(2a)
  697.  
  698.     MIDIWakeUp -
  699.     MIDIRemovePort -
  700.     MIDIGetSync -
  701.     MIDISetSync -
  702.  
  703.     void    MIDIWakeUp(short refnum, long time, long period,
  704.             ProcPtr timeProc);
  705.  
  706.     void    MIDIRemovePort(short refnum);
  707.  
  708.     short    MIDIGetSync(short refnum);
  709.  
  710.     void    MIDISetSync(short refnum, short sync);
  711. /***MIDIGetCurTime***/ MIDISetCurTime MIDIStartTime MIDIStopTime
  712. MIDIGetCurTime(2a)
  713.  
  714.     MIDIGetCurTime -
  715.     MIDISetCurTime -
  716.     MIDIStartTime  -
  717.     MIDIStopTime   -
  718.  
  719.     long    MIDIGetCurTime(short refnum);
  720.  
  721.     void    MIDISetCurTime(short refnum, long time);
  722.  
  723.     void    MIDIStartTime(short refnum);
  724.  
  725.     void    MIDIStopTime(short refnum);
  726. /***MIDIPoll***/
  727. MIDIPoll(2a)
  728.  
  729.     MIDIPoll -
  730.  
  731.     void    MIDIPoll(short refnum, long offsetTime);
  732. /***MIDIWritePacket***/
  733. MIDIWritePacket(2a)
  734.  
  735.     MIDIWritePacket -
  736.  
  737.     OSErr    MIDIWritePacket(short refnum, MIDIPacketPtr packet);
  738. /***MIDIWorldChanged***/
  739. MIDIWorldChanged(2a)
  740.  
  741.     MIDIWorldChanged -
  742.  
  743.     Boolean    MIDIWorldChanged(OSType clientID);
  744. /***MIDIGetOffsetTime***/ MIDISetOffsetTime MIDIConvertTime
  745. MIDIGetOffsetTime(2a)
  746.  
  747.     MIDIGetOffsetTime -
  748.     MIDISetOffsetTime -
  749.     MIDIConvertTime   -
  750.  
  751.     long    MIDIGetOffsetTime(short refnum);
  752.  
  753.     void    MIDISetOffsetTime(short refnum, long offsetTime);
  754.  
  755.     long    MIDIConvertTime(short srcFormat, short dstFormat, long time);
  756. /***MIDIGetRefCon***/ MIDISetRefCon MIDIGetClRefCon MIDISetClRefCon MIDIGetTCFormat MIDISetTCFormat
  757. MIDIGetRefCon(2a)
  758.  
  759.     MIDIGetRefCon   -
  760.     MIDISetRefCon   -
  761.     MIDIGetClRefCon -
  762.     MIDISetClRefCon -
  763.     MIDIGetTCFormat -
  764.     MIDISetTCFormat -
  765.  
  766.     long    MIDIGetRefCon(short refnum);
  767.     void    MIDISetRefCon(short refnum, long refCon);
  768.  
  769.     long    MIDIGetClRefCon(OSType clientID);
  770.     void    MIDISetClRefCon(OSType clientID, long refCon);
  771.  
  772.     short    MIDIGetTCFormat(short refnum);
  773.  
  774.     void    MIDISetTCFormat(short refnum, short format);
  775. /***MIDISetRunRate***/
  776. MIDISetRunRate(2a)
  777.  
  778.     MIDISetRunRate -
  779.  
  780.     void    MIDISetRunRate(short refnum, short rate, long time);
  781. /***MIDIGetClientIcon***/
  782. MIDIGetClientIcon(2a)
  783.  
  784.     MIDIGetClientIcon -
  785.  
  786.     Handle    MIDIGetClientIcon(OSType clientID);
  787. /***MIDIPacket***/ MIDIPacketPtr
  788. MIDIPacket(2a)
  789.  
  790. 【名前】
  791.     MIDIPacket -
  792.  
  793. 【形式】
  794.     ■MIDIPacket    ??
  795.       MIDIPacket
  796.         uchar    flags;
  797.         uchar    len;
  798.         long    tStamp;
  799.         uchar    data[249];
  800.       MIDIPacketPtr    MIDIPacket *
  801. /***MIDIClkInfo***/
  802. MIDIClkInfo(2a)
  803.  
  804. 【名前】
  805.     MIDIClkInfo -
  806.  
  807. 【形式】
  808.     ■MIDIClkInfo    ??
  809.       MIDIClkInfo
  810.         short    sync;
  811.         long    curTime;
  812.         short    format;
  813. /***MIDIIDRec***/
  814. MIDIIDRec(2a)
  815.  
  816. 【名前】
  817.     MIDIIDRec -
  818.  
  819. 【形式】
  820.     ■MIDIIDRec    ??
  821.       MIDIIDRec
  822.         OSType    clientID;
  823.         OSType    portID;
  824. /***MIDIPortInfo***/ MIDIPortInfoPtr MIDIPortInfoHdl
  825. MIDIPortInfo(2a)
  826.  
  827. 【名前】
  828.     MIDIPortInfo -
  829.  
  830. 【形式】
  831.     ■MIDIPortInfo    ??
  832.       MIDIPortInfo
  833.         short        portType;
  834.         MIDIIDRec    timeBase;
  835.         short        numConnects;
  836.         MIDIIDRec    cList[1];
  837.  
  838.       MIDIPortInfoPtr    MIDIPortInfo *
  839.       MIDIPortInfoHdl    MIDIPortInfo **
  840. /***MIDIPortParams***/ MIDIPortParamsPtr
  841. MIDIPortParams(2a)
  842.  
  843. 【名前】
  844.     MIDIPortParams -
  845.  
  846. 【形式】
  847.     ■MIDIPortParams    ??
  848.  
  849.       MIDIPortParams
  850.         OSType        portID;
  851.         short        portType;
  852.         short        timeBase;
  853.         long        offsetTime;
  854.         Ptr        readHook;
  855.         long        refCon;
  856.         MIDIClkInfo    initClock;
  857.         Str255        name;
  858.       MIDIPortParamsPtr    MIDIPortParams *
  859. /***MIDIIDList***/ MIDIIDListPtr MIDIIDListHdl
  860. MIDIIDList(2a)
  861.  
  862. 【名前】
  863.     MIDIIDList -
  864.  
  865. 【形式】
  866.     ■MIDIIDList    ??
  867.       MIDIIDList
  868.         short    numIDs;
  869.         OSType    list[1];
  870.  
  871.       MIDIIDListPtr    MIDIIDList *
  872.       MIDIIDListHdl    MIDIIDList **
  873. #
  874. #
  875. #
  876. /***ID***/ MarkerIdType
  877.     ID    ??
  878.         ID    ulong
  879.  
  880.     MarkerIdType    ??
  881.         MarkerIdType    short
  882. /***ChunkHeader***/
  883. ChunkHeader(2a)
  884.  
  885. 【名前】
  886.     ChunkHeader -
  887.  
  888. 【形式】
  889.     ■ChunkHeader    ??
  890.       ChunkHeader
  891.         ID        ckID;
  892.         long        ckSize;
  893. /***ContainerChunk***/
  894. ContainerChunk(2a)
  895.  
  896. 【名前】
  897.     ContainerChunk -
  898.  
  899. 【形式】
  900.     ■ContainerChunk    ??
  901.       ContainerChunk
  902.         ID        ckID;
  903.         long        ckSize;
  904.         ID        formType;
  905. /***FormatVersionChunk***/ FormatVersionChunkPtr
  906. FormatVersionChunk(2a)
  907.  
  908. 【名前】
  909.     FormatVersionChunk -
  910.  
  911. 【形式】
  912.     ■FormatVersionChunk    ??
  913.       FormatVersionChunk
  914.         ID        ckID;
  915.         long        ckSize;
  916.         ulong        timestamp;
  917. /***CommonChunk***/ CommonChunkPtr ExtCommonChunk ExtCommonChunkPtr
  918. CommonChunk(2a)
  919.  
  920. 【名前】
  921.     CommonChunk    -
  922.     ExtCommonChunk -
  923.  
  924. 【形式】
  925.     ■CommonChunk    ??
  926.       CommonChunk
  927.         ID        ckID;
  928.         long        ckSize;
  929.         short        numChannels;
  930.         ulong        numSampleFrames;
  931.         short        sampleSize;
  932.         extended    sampleRate;
  933.  
  934.     ■ExtCommonChunk    ??
  935.       ExtCommonChunk
  936.         ID        ckID;
  937.         long        ckSize;
  938.         short        numChannels;
  939.         ulong        numSampleFrames;
  940.         short        sampleSize;
  941.         extended    sampleRate;
  942.         ID        compressionType;
  943.         char        compressionName[1];
  944. /***SoundDataChunk***/ SoundDataChunkPtr
  945. SoundDataChunk(2a)
  946.  
  947. 【名前】
  948.     SoundDataChunk -
  949.  
  950. 【形式】
  951.     ■SoundDataChunk    ??
  952.       SoundDataChunk
  953.         ID        ckID;
  954.         long        ckSize;
  955.         ulong        offset;
  956.         ulong        blockSize;
  957. /***Marker***/ MarkerChunk MarkerChunkPtr
  958. Marker(2a)
  959.  
  960. 【名前】
  961.     Marker      -
  962.     MarkerChunk -
  963.  
  964. 【形式】
  965.     ■Marker    ??
  966.       Marker
  967.         MarkerIdType    id;
  968.         ulong        position;
  969.         Str255        markerName;
  970.  
  971.     ■MarkerChunk    ??
  972.       MarkerChunk
  973.         ID        ckID;
  974.         long        ckSize;
  975.         ushort        numMarkers;
  976.         Marker        Markers[1];
  977.  
  978.       MarkerChunkPtr    MakerChunk *
  979. /***AIFFLoop***/
  980. AIFFLoop(2a)
  981.  
  982. 【名前】
  983.     AIFFLoop -
  984.  
  985. 【形式】
  986.     ■AIFFLoop    ??
  987.  
  988.       AIFFLoop
  989.         short        playMode;
  990.         MarkerIdType    beginLoop;
  991.         MarkerIdType    endLoop;
  992. /***InstrumentChunk***/ InstrumentChunkPtr
  993. InstrumentChunk(2a)
  994.  
  995. 【名前】
  996.     InstrumentChunk -
  997.  
  998. 【形式】
  999.     ■InstrumentChunk    ??
  1000.       InstrumentChunk
  1001.         ID        ckID;
  1002.         long        ckSize;
  1003.         char        baseFrequency;
  1004.         char        detune;
  1005.         char        lowFrequency;
  1006.         char        highFrequency;
  1007.         char        lowVelocity;
  1008.         char        highVelocity;
  1009.         short        gain;
  1010.         AIFFLoop    sustainLoop;
  1011.         AIFFLoop    releaseLoop;
  1012. /***MIDIDataChunk***/ MIDIDataChunkPtr
  1013. MIDIDataChunk(2a)
  1014.  
  1015. 【名前】
  1016.     MIDIDataChunk -
  1017.  
  1018. 【形式】
  1019.     ■MIDIDataChunk    ??
  1020.       MIDIDataChunk
  1021.         ID        ckID;
  1022.         long        ckSize;
  1023.         uchar        MIDIdata[1];
  1024. /***AudioRecordingChunk***/ AudioRecordingChunkPtr
  1025. AudioRecordingChunk(2a)
  1026.  
  1027. 【名前】
  1028.     AudioRecordingChunk -
  1029.  
  1030. 【形式】
  1031.     ■AudioRecordingChunk    ??
  1032.       AudioRecordingChunk
  1033.         ID        ckID;
  1034.         long        ckSize;
  1035.         uchar        AESChannelStatus[24];
  1036. /***ApplicationSpecificChunk***/ ApplicationSpecificChunkPtr
  1037. ApplicationSpecificChunk(2a)
  1038.  
  1039. 【名前】
  1040.     ApplicationSpecificChunk -
  1041.  
  1042. 【形式】
  1043.     ■ApplicationSpecificChunk    ??
  1044.       ApplicationSpecificChunk
  1045.         ID        ckID;
  1046.         long        ckSize;
  1047.         OSType        applicationSignature;
  1048.         char        data[1];
  1049. /***Comment***/ CommentsChunk CommentsChunkPtr
  1050. Comment(2a)
  1051.  
  1052. 【名前】
  1053.     Comment       -
  1054.     CommentsChunk -
  1055.  
  1056. 【形式】
  1057.     ■Comment    ??
  1058.       Comment
  1059.         ulong        timeStamp;
  1060.         MarkerIdType    marker;
  1061.         ushort        count;
  1062.         char        text[1];
  1063.  
  1064.     ■CommentsChunk    ??
  1065.       CommentsChunk
  1066.         ID    ckID;
  1067.         long    ckSize;
  1068.         ushort    numComments;
  1069.         Comment    comments[1];
  1070. /***TextChunk***/ TextChunkPtr
  1071. TextChunk(2a)
  1072.  
  1073. 【名前】
  1074.     TextChunk -
  1075.  
  1076. 【形式】
  1077.     ■TextChunk    ??
  1078.       TextChunk
  1079.         ID    ckID;
  1080.         long    ckSize;
  1081.         char    text[1];
  1082.  
  1083.       TextChunkPtr    TextChunk *
  1084. #
  1085. #
  1086. #
  1087. /***TRCCB***/ TPCCB
  1088. TRCCB(2a)
  1089.  
  1090. 【名前】
  1091.     TRCCB -
  1092.  
  1093. 【形式】
  1094.     ■TRCCB    ??
  1095.       TRCCB
  1096.         uchar    *ccbLink;
  1097.         ushort    refNum;
  1098.         ushort    state;
  1099.         uchar    userFlags;
  1100.         uchar    localSocket;
  1101.         AddrBlock remoteAddress;
  1102.         ushort    attnCode;
  1103.         ushort    attnSize;
  1104.         uchar    *attnPtr;
  1105.         uchar    reserved[220];
  1106.  
  1107.       TPCCB    TRCCB *
  1108. /***TRinitParams***/
  1109. TRinitParams(2a)
  1110.  
  1111. 【名前】
  1112.     TRinitParams -
  1113.  
  1114. 【形式】
  1115.     ■TRinitParams    ??
  1116.       TRinitParams
  1117.         TPCCB    ccbPtr;
  1118.         ProcPtr    userRoutine;
  1119.         ushort    sendQSize;
  1120.         uchar    *sendQueue;
  1121.         ushort    recvQSize;
  1122.         uchar    *recvQueue;
  1123.         uchar    *attnPtr;
  1124.         uchar    localSocket;
  1125. /***TRopenParams***/
  1126. TRopenParams(2a)
  1127.  
  1128. 【名前】
  1129.     TRopenParams -
  1130.  
  1131. 【形式】
  1132.     ■TRopenParams    ??
  1133.       TRopenParams
  1134.         ushort        localCID;
  1135.         ushort        remoteCID;
  1136.         AddrBlock    remoteAddress;/* address of remote end */
  1137.         AddrBlock    filterAddress;/* address filter */
  1138.         ulong        sendSeq;
  1139.         ushort        sendWindow;
  1140.         ulong        recvSeq;
  1141.         ulong        attnSendSeq;
  1142.         ulong        attnRecvSeq;
  1143.         uchar        ocMode;
  1144.         uchar        ocInterval;
  1145.         uchar        ocMaximum;
  1146. /***TRcloseParams***/
  1147. TRcloseParams(2a)
  1148.  
  1149. 【名前】
  1150.     TRcloseParams -
  1151.  
  1152. 【形式】
  1153.     ■TRcloseParams    ??
  1154.  
  1155.       TRcloseParams
  1156.         uchar    abort;
  1157. /***TRstatusParams***/
  1158. TRstatusParams(2a)
  1159.  
  1160. 【名前】
  1161.     TRstatusParams -
  1162.  
  1163. 【形式】
  1164.     ■TRstatusParams    ??
  1165.       TRstatusParams
  1166.         TPCCB    ccbPtr;
  1167.         ushort    sendQPending;
  1168.         ushort    sendQFree;
  1169.         ushort    recvQPending;
  1170.         ushort    recvQFree;
  1171. /***TRioParams***/
  1172. TRioParams(2a)
  1173.  
  1174. 【名前】
  1175.     TRioParams -
  1176.  
  1177. 【形式】
  1178.     ■TRioParams    ??
  1179.       TRioParams
  1180.         ushort    reqCount;
  1181.         ushort    actCount;
  1182.         uchar    *dataPtr;
  1183.         uchar    eom;
  1184.         uchar    flush;
  1185. /***TRattnParams***/
  1186. TRattnParams(2a)
  1187.  
  1188. 【名前】
  1189.     TRattnParams -
  1190.  
  1191. 【形式】
  1192.     ■TRattnParams    ??
  1193.       TRattnParams
  1194.         ushort    attnCode;
  1195.         ushort    attnSize;
  1196.         uchar    *attnData;
  1197.         uchar    attnInterval;
  1198. /***TRoptionParams***/
  1199. TRoptionParams(2a)
  1200.  
  1201. 【名前】
  1202.     TRoptionParams -
  1203.  
  1204. 【形式】
  1205.     ■TRoptionParams    ??
  1206.       TRoptionParams
  1207.         ushort    sendBlocking;
  1208.         uchar    sendTimer;
  1209.         uchar    rtmtTimer;
  1210.         uchar    badSeqMax;
  1211.         uchar    useCheckSum;
  1212. /***TRnewcidParams***/
  1213. TRnewcidParams(2a)
  1214.  
  1215. 【名前】
  1216.     TRnewcidParams -
  1217.  
  1218. 【形式】
  1219.     ■TRnewcidParams    ??
  1220.       TRnewcidParams
  1221.         ushort    newcid;
  1222. /***DSPParamBlock***/ DSPPBPtr
  1223. DSPParamBlock(2a)
  1224.  
  1225. 【名前】
  1226.     DSPParamBlock -
  1227.  
  1228. 【形式】
  1229.     ■DSPParamBlock    ??
  1230.       DSPParamBlock
  1231.         struct    QElem    *qLink;
  1232.         short    qType;
  1233.         short    ioTrap;
  1234.         Ptr    ioCmdAddr;
  1235.         ProcPtr    ioCompletion;
  1236.         OSErr    ioResult;
  1237.         char    *ioNamePtr;
  1238.         short    ioVRefNum;
  1239.         short    ioCRefNum;
  1240.         short    acsCode;
  1241.         long    qStatus;
  1242.         short    ccbRefNum;
  1243.         union {
  1244.             TRinitParams    initParams;
  1245.             TRopenParams    openParams;
  1246.             TRcloseParams    closeParams;
  1247.             TRioParams    ioParams;
  1248.             TRattnParams    attnParams;
  1249.             TRstatusParams    statusParams;
  1250.             TRoptionParams    optionParams;
  1251.             TRnewcidParams    newCIDParams;
  1252.         }    u;
  1253.  
  1254.       DSPPBPtr    struct DSPParamBlock *
  1255.